<script src="/assets/js/bootstrap.min.js" async></script>
{{- if .IsHome }}
<script src="/assets/js/list.min.js"></script>
<script>
  new List('icons-body', {
    valueNames: ['name', { data: ['tags', 'categories'] }]
  });
</script>
{{- end }}

{{- $vendor := resources.Match "js/vendor/*.js" -}}
{{- $js := resources.Match "js/*.js" -}}
{{- $docsJs := append $js $vendor | resources.Concat "assets/js/application.js" -}}

{{- if eq hugo.Environment "production" -}}
  {{- $docsJs = $docsJs | resources.Minify -}}
{{- end }}
<script src="{{ $docsJs.Permalink | relURL }}" async></script>
